local ifTable = require("ifTable")
local ifsTable = require("ifsTable")
local s2table = require("string.s2table")
local function localf(js)
    for k, v in pairs(js) do
        if ifTable(v) then
            localf(v)
        elseif v == "true" then
            js[k] = true
        elseif v == "false" then
            js[k] = false
        elseif v == "null" then
            js[k] = nil
        elseif ifsTable(v) then
            js[k] = s2table(v)
        end
    end
    return js
end

return localf
